Skip to content

[US-4.3 / OBT-206] Multi-select platforms with checkboxes - #16

Open
levigtri wants to merge 4 commits into
levigft/obt-205-us-42-the-typescript-types-to-reflect-the-new-platformsfrom
levigft/obt-206-us-43-select-multiple-platforms-independently-web-android
Open

[US-4.3 / OBT-206] Multi-select platforms with checkboxes#16
levigtri wants to merge 4 commits into
levigft/obt-205-us-42-the-typescript-types-to-reflect-the-new-platformsfrom
levigft/obt-206-us-43-select-multiple-platforms-independently-web-android

Conversation

@levigtri

@levigtri levigtri commented Jul 5, 2026

Copy link
Copy Markdown
Member

Summary

US-4.3 / OBT-206 — Let admins select any combination of platforms (Web, Android, iOS) independently when creating or editing an app, replacing the single Web/Mobile/Both dropdown.

Changes

  1. New src/components/common/PlatformMultiSelect.tsx — a reusable toggle-button group (Web, Android, iOS) styled with Shema tokens; active options use the telha accent.
  2. AppsPage.tsx: form state is now platforms: string[]; the create/edit dialog uses PlatformMultiSelect; requires at least one platform (toast on empty); sends the array to the API. Removed the transitional legacy bridge.
  3. AppDetailPage.tsx: same treatment for the edit dialog; editing pre-selects the app's current platforms.

Type of Change

  • Feature

Testing

  • npm run typecheck — pass
  • npm run lint — 0 errors (pre-existing ProjectsPage warning only)
  • npm run build — pass

Stacked on US-4.2 / OBT-205 (#15). Merge #15 first, then this PR.
Depends on backend US-4.1 / OBT-204 (PR #94) for runtime validation.

Replace the single Web/Mobile/Both dropdown in the app create and edit forms
with a PlatformMultiSelect toggle group (Web, Android, iOS) that allows any
combination. Require at least one platform before saving, pre-select the current
platforms when editing, and send the selection as an array.

Remove the transitional legacy<->array bridge introduced in US-4.2.
levigtri and others added 3 commits July 9, 2026 22:08
These pr-us-*.md files are local PR notes that were bundled into the
feature commit by mistake; they should never have been tracked/pushed.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Local decision notes bundled into the feature commit by mistake; never
meant to be tracked/pushed.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: QUIET

Plan: Pro Plus

Run ID: 385796e8-8dab-4ad9-b355-34574e146a26

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch levigft/obt-206-us-43-select-multiple-platforms-independently-web-android

Comment @coderabbitai help to get the list of available commands.

@levigtri levigtri self-assigned this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant